package com.itcast.demo.datamask.controller;

import com.itcast.demo.datamask.annotation.User;
import com.itcast.demo.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/testDataMask")
public class TestDataMaskController {

    @Autowired
    private EmployeeMapper employeeMapper;

    @GetMapping("/test")
    public List<User> test() {
        return employeeMapper.selectAll();
    }
}
